/*
 * @Author: hewenke
 * @Date: 2023-09-13 14:55:36
 * @LastEditors: hewenke hewenke@dataojo.com
 * @LastEditTime: 2023-09-15 15:46:59
 * @FilePath: \react-app\src\index.js
 * @Description: 项目入口配置
 */
import React from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import { globalRouters } from '@/router'
import { ConfigProvider } from 'antd'
import { store } from '@/store'
import { Provider } from 'react-redux'
import './mock'  // 正式上线前，一定不要忘记关掉Mock.js！！！直接在src/index.js中注释掉import './mock'这段代码即可。
// 引入Ant Design中文语言包
import zhCN from 'antd/locale/zh_CN'
// 全局样式
import './common/style/frame.less'


const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <RouterProvider router={globalRouters} />
    </ConfigProvider>
  </Provider>
)